package com.drojian.demo2.root_fragment;

import android.os.Bundle;

import androidx.fragment.app.Fragment;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.drojian.demo.R;


public class ResFragment extends Fragment {


    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.part2_fragment_res, container, false);

        TextView textView = view.findViewById(R.id.res_textview1);
        String[] stringArray = getResources().getStringArray(R.array.MyLetterArray);
        String str = "";
        for (int i = 0; i < 11; i++) {
            str = str +" "+ i;
        }
        textView.setText(str);
        return view;


    }
    public static ResFragment newInstance() {
        return new ResFragment();
    }
}